package club.baimahu.pencil.servlet.annotation;


import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.METHOD,ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface RequestMapping {

    @AliasFor("path")
    String value() default "";

    String path() default "";

    String[] methods() default {"GET","POST","PUT","DELETE","PATCH"}; //GET POST PUT DELETE ,PATCH
}
